package com.itheima.test2;

public class Test {
    public static void main(String[] args) {
        //创建线程对象
        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();
        //设置线程名称
        t1.setName("A");
        t2.setName("B");
        //启动线程
        t1.start();
        t2.start();
    }
}
